package other.third.entity.base;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 王霄
 * @date 2021/4/26
 */
public class ThirdRequest {


    @Getter
    private String url;

    @Getter
    private String method;

    @Getter
    private final Map<String, String> param = new HashMap<>(2);

    public static ThirdRequest build() {
        return new ThirdRequest();
    }

    public ThirdRequest addParam(String paramName, String paramValue) {
        this.param.put(paramName, paramValue);
        return this;
    }

    public ThirdRequest addMethod(String method) {
        this.method = method;
        return this;
    }

    public ThirdRequest addUrl(String url) {
        this.url = url;
        return this;
    }

}
